NevronOpenVision
Nevron.Nov.Graphics Namespace / NGeometry2D Class / GetNearestPoint Method / GetNearestPoint(NPoint[],NPoint) Method
Array of points.
point whose nearest point to return
In This Topic
    GetNearestPoint(NPoint[],NPoint) Method
    In This Topic
    Gets the point in the specified array, which is nearest to the specified point. If array is empty returns the point itself.
    Syntax
    public static NPoint GetNearestPoint( 
       NPoint[] points,
       NPoint pt
    )

    Parameters

    points
    Array of points.
    pt
    point whose nearest point to return
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also